package com.SHA1604.tiger.fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.Toast;

import com.SHA1604.tiger.R;
import com.SHA1604.tiger.base.BaseFragment;

/**
 * ***********************************************************
 * author: jie
 * time: 2016/7/27 09:01
 * name:
 * overview:Build.VERSION.SDK_INT:版本号
 * usage:
 * *************************************************************
 */
public class FindFragment extends BaseFragment implements View.OnClickListener {

    private LinearLayout ll1,ll2,ll3,ll4;
    @Override
    protected View loadXml(LayoutInflater inflater, ViewGroup container) {
        return inflater.inflate(R.layout.fragment_find,container,false);
    }

    @Override
    protected void initView(View view) {
        ll1 = (LinearLayout) view.findViewById(R.id.find_ll1);
        ll2 = (LinearLayout) view.findViewById(R.id.find_ll2);
        ll3 = (LinearLayout) view.findViewById(R.id.find_ll3);
        ll4 = (LinearLayout) view.findViewById(R.id.find_ll4);

    }

    @Override
    protected void initData() {
        ll1.setOnClickListener(this);
        ll2.setOnClickListener(this);
        ll3.setOnClickListener(this);
        ll4.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        Toast.makeText(mActivity, "1", Toast.LENGTH_SHORT).show();
        Toast.makeText(mActivity, "2", Toast.LENGTH_SHORT).show();
        Toast.makeText(mActivity, "3", Toast.LENGTH_SHORT).show();
        Toast.makeText(mActivity, "4", Toast.LENGTH_SHORT).show();
    }
}
